package com.hanqi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hanqi.entity.SysRoleFunc;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysRoleFuncMapper extends BaseMapper<SysRoleFunc> {

    List<Map<String, Object>> funcsByMenuIdWithRoleId(@Param("roleId") String roleId, @Param("menuId") String menuId);

    Integer removeAuth(@Param("menuFuncId") String menuFuncId, @Param("roleId") String roleId);

    Integer insertAuth(@Param("menuFuncId") String menuFuncId, @Param("roleId") String roleId);
}
